//
//  LJDatePickerView.h
//  ReceiptDelivery
//
//  Created by 吕晶 on 2020/7/3.
//  Copyright © 2020 吕晶. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^LJDatePickerFinishBlock)(NSString *dateStr);

typedef NS_ENUM(NSUInteger,LJDatePickerViewMode) {
    LJDatePickerViewModeMinAndSec    =  0,//显示时、分（不含单位）
    LJDatePickerViewModeDate             ,//显示年月日
    LJDatePickerViewModeDateMinSec        //显示年月日时分
};

@interface LJDatePickerView : UIView

@property (nonatomic, copy) LJDatePickerFinishBlock finishBlock;
@property (nonatomic, assign) LJDatePickerViewMode dateMode;

- (instancetype)initWithDateMode:(LJDatePickerViewMode)mode;
- (void)showWithDate:(LJDatePickerFinishBlock)finishBlock;

@property (nonatomic, copy) NSString *currentDate;

@end

NS_ASSUME_NONNULL_END
